package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工人对象 worker
 * 
 * @author sizegang
 * @date 2024-06-29
 */
public class Worker extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 工人编号 */
    @Excel(name = "工人编号")
    private Long code;

    /** 姓名 */
    @Excel(name = "姓名")
    private String username;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birth;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 性别 */
    @Excel(name = "性别")
    private Long sex;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String idCard;

    /** 身份证正面地址 */
    @Excel(name = "身份证正面地址")
    private String idCardFront;

    /** 身份证背面地址 */
    @Excel(name = "身份证背面地址")
    private String idCardBackend;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 家庭住址 */
    @Excel(name = "家庭住址")
    private String address;

    /** 支付宝收款码地址 */
    @Excel(name = "支付宝收款码地址")
    private String zhifubaoSkAddress;

    /** 微信收款码地址 */
    @Excel(name = "微信收款码地址")
    private String weixinSkAddress;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerTime;

    /** 可接受医院编号 */
    @Excel(name = "可接受医院编号")
    private String acceptHispitalCode;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(Long code) 
    {
        this.code = code;
    }

    public Long getCode() 
    {
        return code;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setBirth(Date birth) 
    {
        this.birth = birth;
    }

    public Date getBirth() 
    {
        return birth;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setIdCardFront(String idCardFront) 
    {
        this.idCardFront = idCardFront;
    }

    public String getIdCardFront() 
    {
        return idCardFront;
    }
    public void setIdCardBackend(String idCardBackend) 
    {
        this.idCardBackend = idCardBackend;
    }

    public String getIdCardBackend() 
    {
        return idCardBackend;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setZhifubaoSkAddress(String zhifubaoSkAddress) 
    {
        this.zhifubaoSkAddress = zhifubaoSkAddress;
    }

    public String getZhifubaoSkAddress() 
    {
        return zhifubaoSkAddress;
    }
    public void setWeixinSkAddress(String weixinSkAddress) 
    {
        this.weixinSkAddress = weixinSkAddress;
    }

    public String getWeixinSkAddress() 
    {
        return weixinSkAddress;
    }
    public void setRegisterTime(Date registerTime) 
    {
        this.registerTime = registerTime;
    }

    public Date getRegisterTime() 
    {
        return registerTime;
    }
    public void setAcceptHispitalCode(String acceptHispitalCode) 
    {
        this.acceptHispitalCode = acceptHispitalCode;
    }

    public String getAcceptHispitalCode() 
    {
        return acceptHispitalCode;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("username", getUsername())
            .append("age", getAge())
            .append("birth", getBirth())
            .append("phone", getPhone())
            .append("sex", getSex())
            .append("idCard", getIdCard())
            .append("idCardFront", getIdCardFront())
            .append("idCardBackend", getIdCardBackend())
            .append("avatar", getAvatar())
            .append("address", getAddress())
            .append("zhifubaoSkAddress", getZhifubaoSkAddress())
            .append("weixinSkAddress", getWeixinSkAddress())
            .append("registerTime", getRegisterTime())
            .append("acceptHispitalCode", getAcceptHispitalCode())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("operator", getOperator())
            .toString();
    }
}
